Hitachi Vantara interview question

programming assignment