Replace the 3rd and 5th element of an array with their respective square root.
[1, 2, 9, 4, 25]
[1, 2, 3, 4, 5]
Complete the following task based on the instruction and optional input provided.### Instruction:
Replace the 3rd and 5th element of an array with their respective square root.

### Input:
[1, 2, 9, 4, 25]

### Output:
[1, 2, 3, 4, 5]