What is your existing background? Do you come from a traditional science background?
Here are some of the things you need to know in order to pass a software engineering interview:
1. Very good working knowledge of at least one programming language.
2. Know your data structures by heart and be able to manipulate data in them. Arrays, Linked Lists, Hash Tables, etc.
3. Read Cracking the Coding Interview, 6th Edition: 189 Programming Questions and Solutions: Gayle Laakmann McDowell: 9780984782857: Amazon.com: Books You should be able to answer most of the questions in it.
Understand to prepare for a coding interview you should plan on spending up to three months learning / refreshing and practicing these questions.
Also make sure you can do code on the white board.
Good luck.
Source: Quora