Programming problem


can you please provide explantion of above program