List-2--has22 Coding bat / List - 2 / challenge has22 The solution I provided is not optimized. Providing solution for anybody who could not figure out how to solve it. Also looking for better solution. Cheers.