The interview started with the usual introduction about me and then the interviewer gave me 2 questions one by one. Both questions needed to be solved and run on IDE (either online or local, your choice).
Question 1: https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/
This was the exact question that I was asked.
Follow-up: As a follow up for the above question, I was also asked to minimize the number of transaction.
Question 2: This was not a seen question for me. I was asked to transform to a binary tree based on some rules. The question was a little unclear but I was able to solve it after some time. I dont have the exact question with me but it was something like this.
Assign leftmost node to new parent, make right sibling to new left, make right subtree to same tree recursively. (I am sorry if the rules are unclear. I can post the code that I used if that can help anyone.)
After that I was asked some DBMS questions: Normalization (1NF, 2NF etc), Sql vs NoSql, ACID properties.
After this I was asked about my projects and the tech stack that I used in the projects.

