BetConstruct interview question

Mathematical and Data Structure questions