Edugoog
The alphabets are soded as shown :
So, G is coded as 5, A as 2, T as 4 and E as 7. Thus, the code fro GATE is 5247.