Power of the Last Digit of a Power

Company: NatWest_IITBHU_12oct

Difficulty: easy