Divum Interview Question

first round aptitude and then programming round