# Salesforce Interview Experience for Internship (On-Campus 2020)

Online Test: There were 3 coding questions to be answered in 75mins

1. Give an array you have to sum up the values of the array and call the sum as q. You have to evaluate the following:

∑qi=1 qj=i F(i,j)

Where F(i,j)=sum of divisors of i and j. Simple, brute force solution was expected

2. Given an array find the number of index triplets (i,j,k) such that i<j<k and array[i]<array[j]<array[k] or array[i]>array[j]>array[k]

3. Minimum time required to rot all oranges

25 out of 200(around) were shortlisted for virtual interviews). You need to solve at least 2.5 questions as fast as possible

Round 1: First, there was an introduction from both sides. 2 coding questions:

Level of number in binary search tree(Simple recursive solution)

Given an array in sorted(ascending) order and a percentile value. (Percentile value: percentage number of values less than or equal to a given number of elements). You have to find an element with this or just a lesser percentile value than this.

Eg:

```Input: arr={1,2,3,4,5,6,7,8,9,10} percentile=50%
Output: 5```

Around 10 were sent for round 2.

Round 2: He directly gave me 1 question:

5 were sent to Round 3

Round 3: There were only Hr questions

1. Family members & what they are doing
2. What did you do during the lockdown
3. How were the last 2 interviews

And a few more ….

Finally, 3 were selected, and I was one of them…

Tips: Be patient even if you don’t get the question for the first time and keep asking questions and any hint if you need it. The interviewers were helpful enough.

Thank you GeksforGeeks for being constant help for the preparation

Write your Interview Experience or mail it to contribute@geeksforgeeks.org

My Personal Notes arrow_drop_up

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :
Practice Tags :

Be the First to upvote.

Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.