Here he can make all small letters and output the answer as “chef” or he can make it as all capital letters and output the answer as “brother” .Here which output is satisfied for this condition.
yeah agree but K is 4 only and first 3 flips are used for making it all small letters and then K=1 one flip cant be used to make all capital letters .K should be 6 to make the output “both”