IBM Interview Question

Array questions - Largest next building and sorting