Synechron Interview Question

basic data structure and algorithm questions