Subject :IMO Class : Class 6

Which of the following will be the middle digit of the second highest number among the following five numbers if the positions of the first and the third digits in each number are interchanged?

432 851 719 643 287

A 8

B 3

C 5

D 1