GlobalLogic interview question

Binary search, Sorting, Patterns, Logical questions