Implement factorial and square list
Company: Morgan Stanley
Role: Data Scientist
Category: Coding & Algorithms
Difficulty: medium
Interview Round: HR Screen
Quick Answer: This question evaluates implementation skills for basic algorithms—computing factorial iteratively and generating a sequence of squares—along with understanding of recursion versus iteration, input validation, and analysis of time and space complexity.