Count islands by requested sizes | Bloomberg Interview Question