He didn't asked my introduction
Me: Sir, in academics I like Data Structures and algorithms
Interviewer: Ok, what is linked list?
Me: Answered fluently :p
Interviewer: What is doubly linked list?
Me: Again, answered
Interviewer: Are you comfortable with writing codes?
Me: Yes Sir I can try.
Interviewer: Suppose we have an array of integers, we want to pull out all the prime numbers from them and print them in descending order?
Me: I wrote it in a single shot using prime number having 2 factors and applied bubble sort concept, as it was one of the important and frequently asked problem, basically he wants to test both knowledge of prime numbers checking and sorting.