Panda Guru LogoPanda
Guru

Microsoft L3

Round 1

Questions: You will be given an array A of size N.
Find the number of sub-sequences (not necessarily of consecutive elements) that meet the following conditions:

Input:

Constraints:

Sample Input:

2 1 2

Output: 3

Sample Input:

3 1 2 1

Output: 6

Sample Input:

4 1 2 3 4

Output: 15

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.