UBS Interview Experience for SDE|On-campus
Question Details
UBS visited our campus for a recruitment drive, providing an exciting opportunity for students to showcase their skills and secure positions in their esteemed organization...
Full Details
UBS visited our campus for a recruitment drive, providing an exciting opportunity for students to showcase their skills and secure positions in their esteemed organization.
Round 1 Online Assessment The test was conducted on the Hackerrank platform. There were 24 MCQ's (DBMS, Java, OS) and 1 coding question. The coding questions were similar to https://stackoverflow.com/questions/60962315/optimize-performance-of-the-method Around 39 students out of 300 were shortlisted for the second round.
Round 2 Technical Interview 1 This round was conducted on the Hackerrank code pair platform. The round started with my Introduction. After this, the interviewer asked questions related to OOPS, DBMS(Normalization, Joins, ACID Properties, etc), CN, OS(Paging, Segmentation). After this, the interviewer gave one coding question. She asked me to explain the approach and write the code as well.
Coding question: https://www.geeksforgeeks.org/dsa/given-a-sequence-of-words-print-all-anagrams-together/ I explained my approach and implemented the code in C++. Then we discussed time complexity and space complexity as well. In the end, the interviewer asked if I had some questions to ask.
Round 3 Technical Interview 2 This round was also conducted on the Hackerrank code pair platform. The interviewer gave two coding questions: https://www.geeksforgeeks.org/dsa/count-minimum-number-of-fountains-to-be-activated-to-cover-the-entire-garden/ https://www.geeksforgeeks.org/dsa/decimal-equivalent-of-binary-linked-list/ I was able to solve question 1 partially (10/14 test cases passed). I was able to question 2 completely(14/14 test cases passed). For both solutions, we discussed time and space complexity and ways to optimize the solution for question 1. In the end, the interviewer asked if I had some questions to ask.
Round 4 HR Round This round has some basic HR questions. Tell me about yourself. Tell me about family background How were your last two interviews? Tell me about projects and some more questions like this. The result was declared 2 days later and 17 students were selected and I was one of them. Some tips: Please go through your resume in depth. You should know and everything that you have mentioned in your resume because the interviewer can ask you to explain anything from your resume. Don't mention the things that you are not confident about. Be confident!! Even if you get stuck at some point the interviewer will give you some hints. The key point is don't give up, try to explain your thought process for solving the problem and they don't look for a particular language but they see how well you can think logically. All the interviewers were nice and it was a great experience!
About This Question
This is a reported interview question from a ubs interview for a swe role during the oa round reported in 2025.
It covers the following topics: Sql, Linked List, Strings .
Difficulty rating: Easy
Topics
More Ubs Interview Questions
About Ubs Interview Reports
This question was reported by a candidate who interviewed at Ubs. LeakCode aggregates interview reports from 10+ sources, including 1Point3Acres, Glassdoor, LeetCode Discuss, Blind, Reddit, Indeed, and Nowcoder. Each report is translated where necessary, deduplicated against existing entries, and tagged by company, role, round type, and reporting date.
Use this question as one calibration data point, not a memorization target. Companies typically rotate their question pools every 2-4 months; the exact wording of a 2024 question may differ from what you encounter today. The underlying pattern, difficulty level, and follow-up depth at Ubs are the higher-signal extractions to take from this report.
For broader preparation context, the Ubs interview process typically includes a recruiter screen, one or two technical phone screens, and a 4-5 round on-site loop covering coding, system design (at L4+ levels), and behavioral. Reports tagged on LeakCode show the round-by-round distribution and typical difficulty calibration. To browse questions filtered by round type and seniority, use the company hub linked above.
How To Practice This Type of Question
Solve similar problems on LeetCode under timed conditions (25-35 minutes per medium difficulty). The goal is pattern recognition: recognize the underlying technique (sliding window, two-pointer, BFS, memoized recursion, etc.) within 60-90 seconds of reading. Strong candidates verbalize their hypothesis out loud before coding, then iterate based on feedback. Weak candidates dive into implementation immediately, lose time on the wrong approach, and run out of time for follow-ups.
Companies update their question pools every 2-4 months. The exact wording of any given question may have been retired by the time you interview. Focus your prep on the pattern, not the specific problem. The patterns that appear in Ubs reports consistently are the ones worth investing in; one-off niche problems are not.
During Your Ubs Round
Apply the standard interview round template: clarify requirements (2-3 minutes), state your approach out loud and confirm direction with the interviewer (3-5 minutes), code with narration (15-25 minutes), test with concrete examples including edge cases (5 minutes), discuss optimization or trade-offs if time permits (5 minutes). This template is universally accepted across FAANG and adjacent companies; deviating from it produces weaker interviewer feedback signal.
The single most predictive failure mode in Ubs reports tagged "no hire": not asking clarifying questions. Interviewers are explicitly trained to weight this. Strong candidates ask 3-5 clarifying questions even on problems that look obvious; weak candidates dive into code immediately. The clarifying-question check is often the first signal recorded in the interviewer's written notes.