Fortude interview question

a a a a a