Amazon interview question

1. Counting Bit 2. The balloon question on leetcode