Nagarro Interview Question

Write a java program for the given input and output: Input: [111,113,115,227,229] Output: [115,113,111,229,227]