Cisco interview question

JavaScript basics, like hoisting and closure and scope. One algorithm simple sort based question