OneTrust | Senior Software Engineer (frontend) | 5 years | Bangalore | India
Summary
I interviewed for a Senior Software Engineer (Frontend) role at OneTrust in Bangalore, India. The second round covered JavaScript, Angular, coding problems, and system design.
Full Experience
OneTrust | Senior Software Engineer (Frontend) | Round 2
Experience - 5 years Topics: Coding standards, Javascript, Angular Interviewer - Senior staff engineer
Javascript -
- Event loop
- Promise vs observables with coding
- debounce in javascript
- closure coding snippet
Angular -
- Async vs observable
- Angular performance improvisation
- Security of the application
Coding -
- Find kth largest element
- Delete duplicate value key from an object - Input={a: 1, b: 2, c: 3, d: 1} Output={a:1,b2:,c:3}
System Design -
- Caching techniques for heavy data dashboard. Follow-up question were asked regarding my choices for a particular strategy.
Interview Questions (3)
Find Kth Largest Element
Given an unsorted array of numbers and an integer k, find the kth largest element in the array.
Delete Duplicate Value Keys from an Object
Given a JavaScript object with key‑value pairs, remove keys that have duplicate values. Example:
Input: {a: 1, b: 2, c: 3, d: 1}
Output: {a: 1, b: 2, c: 3} (or any representation that retains only one key per unique value).
Caching Techniques for Heavy Data Dashboard
Design a caching strategy for a dashboard that displays large volumes of data. Discuss which caching mechanisms you would use, how to invalidate or update the cache, and trade‑offs of your chosen approach.