Antra interview question

2. online accessment: 1 leetcode easy