ION Group interview question

General logic questions/ some leetcode easy