# Goldman Sachs Interview Experience for Summer Analyst Intern (On-Campus)

Online Test:

1. Aptitude Section
2. CS Fundamentals Section
3. Essay Writing
4. 2 Coding Questions (Easy to Medium Level)

The test was conducted on Hackerrank and was un-proctored, and there was no section-based timing.

Round 1:

1. Introduce yourself.
2. A brief discussion of my Projects
3. Coding question:
Calculate the number of ways to encode a string(only digits 0-9) in the following way:
```Input: “121”
Output: 3 (Possible Encodings: “ABA”, “AU”, “LA”) ```

Round 2:

1. Group the same sum pairs in an array.
```Input: {0,1,2,3}
Output:[[(0,3),(1,2)],
[(1,3)],
[(0,2)],
[(0,1)],
[(2,3)]
] ```
2. Print the numbers from 1 to 10,000 which have their factor sum equal to themselves. [For example: 6(1+2+3=6)]
3. Why do you want to be a software engineer?
4. What have you done to reach your goal of becoming a software engineer beyond college?
5. Which OS do you use? Why didn’t you try installing Linux!

I was able to do both the coding questions with optimal time complexities but had issues with the last two questions as the interviewer just went on asking me as to why didn’t I install Linux and wasn’t much convinced with my answer that MacOS is also UNIX based and how bash scripting can be easily done on the zsh shell of Mac. I didn’t proceed further