Noblis interview question

easy leet code question was asked