WINIT Software interview question

In array about coins question