Experian Interview Question

How to resolve javascript and Java functions