Powershell Function Return String Javascript Program Interview