Function Within Function In Javascript Programming Interview