Company: Sanofi_16nov
Difficulty: medium
Student Scores Podium Problem Description A coaching centre is printing a poster showing a podium. The pictures of N students are arranged left to right according to their scores: The highest scorer stands in the centre. The second highest stands immediately to the left of the centre. The third highest stands immediately to the right of the centre. The fourth highest stands to the left of the second highest, the fifth to the right of the third, and so on, alternating left and right as the ranking goes down. Print the resulting left-to-right sequence of scores. Function Description Complete the function solve : int N : the number of students. long scores[N] : the score of each student. Returns the podium sequence, read from left to right. Input Format The first line contains the integer N . The second line contains N space-separated integers, the scores. Output Format Print the N scores of the podium from left to right, separated by single spaces. Examples Example 1 Input: 5 70 25 25 30