Light, while entering a denser medium from a rarer medium, gets slowed down and bends towards the normal. The bending towards the normal is more if the second medium in refraction has higher optical density. Here, the most dense medium is medium 3 as light bends by the maximum amount.
Speed of light is lower in optically denser media. Therefore, speed of light is minimum in medium 3.