Sharma & Associates interview question

Q: question they asked at first.