Google Interview Question

asked me a bit on transformer