Quora, Inc. interview question

Coding activity in an IDE to complete a pattern