
My UBS’s HackerRank test had quite a lot of questions. A total of 16. Aside from one coding problem and one multiple-select question, the other 14 were all single-select. Below, I will share the interview questions I encountered.
I’m really grateful to Linkjob.ai for helping me pass my interview, which is why I’m sharing my OA questions and experience here. Having an undetectable AI interview tool during the interview indeed provides a significant edge.
This article is part of the HackerRank series. If you're interested in other articles in this series, feel free to read: Microsoft HackerRank test, JP Morgan HackerRank test, Stripe HackerRank online assessment.



In my view, this problem is at a Medium difficulty level.
It’s not the kind of question where I can immediately spot the optimal solution. Instead, it has two core challenges I need to handle:
IP regex-style matching:
I need to implement a correct and efficient way to determine whether a request’s IP matches any of the blacklist patterns.
Sliding window rate-limit check:
I must track how many successful requests an IP has made in the past 5 seconds, which requires a clever data structure to manage the time window.
To solve this question properly, I needed a clear understanding of data structures (especially hash maps and queues/deques) and I had to break the problem cleanly into two independent parts.
I broke the problem into two main logical components. A request is blocked (output = 1) if it satisfies either condition:
Input:
blacklisted_ips (an array of patterns) and the current request[i].
Rule:
If request[i] matches any pattern in blacklisted_ips, the request is blocked.
Key Detail:
The pattern uses a wildcard *.
An IP is made of four dot-separated numbers (A.B.C.D), and * can match zero or more characters.
My Approach:
Since the number of patterns is small (1 ≤ n ≤ 10), I decided to preprocess patterns and simply check each incoming IP against all patterns.
The wildcard logic is simple enough that a custom matcher (or a built-in glob/wildcard match) works well.
Input:
The request IP request[i], which arrives at time i.
Rule:
If this IP has at least 2 successful (not blocked) requests in the past 5 seconds then the current request is blocked.
Key Detail:
Only unblocked requests count.
If a request is blocked, it is not added to the future sliding window.
My Approach:
This is the more complex part.
I needed a data structure that stores, for each IP, the timestamps of all its successful requests, and can quickly remove outdated ones (older than 5 seconds).

Linkjob AI worked great and I got through my interview without a hitch. It’s also undetectable, I used it and didn't trigger any HackerRank detection.
If you've never used AI interview assistants on platforms like HackerRank and are concerned about their stealthiness, we recommend reading: HackerRank how to vheat.
My final solution revolves around one core data structure and one matching function.
I used a map to track all successful request timestamps per IP:
SuccessfulRequests: Map<string, Deque<int>>Key: IP address (string)
Value: a deque storing all timestamps of successful (unblocked) requests, in ascending order
The deque makes it easy to pop expired timestamps from the front in O(1) time.
This function checks whether an IP matches any blacklist pattern.
For every pattern in blacklisted_ips:
I apply a wildcard-matching algorithm (two pointers or recursion both work).
If the language provides a built-in matching function, using that is even simpler.
As soon as one match is found → return true.
If no patterns match → return false.
I iterate through all requests requests[i] from i = 1 to q.
For each request:
Step 1: Initialize
is_blocked = falseStep 2: Blacklist Check
if is_blacklisted(request[i], blacklisted_ips):
is_blocked = trueIf true → this request is blocked (output = 1).
Step 3: Rate-Limit Check
Only run this step if not already blocked:
Get the deque for this IP:
times = SuccessfulRequests[ip]Remove stale timestamps:
while times.front < i - 5:
pop_front()If after cleanup, the deque size ≥ 2 → block this request.
Step 4: Final Handling & Update
If is_blocked == true → output 1.
If not blocked:
Output 0.
Add the current timestamp i to SuccessfulRequests[ip].
This ensures:
Only successful requests are tracked.
The sliding window always stays valid.
Both blocking rules are fully satisfied.
At the end, I return the array of 1s and 0s representing all request outcomes.

The multiple-choice questions were in the format shown in the images below, and there were 15 of them in total. I felt that the multiple-choice section was slightly harder than the coding question, roughly at an upper-mid difficulty level.




After completing this online assessment (OA), my takeaway was that the test was very clearly designed. Its goal was to comprehensively evaluate whether I possess a qualified engineering mindset and strong system-level problem-solving ability.
In my view, the focus went far beyond core Java knowledge. It delved deeply into areas that are critical in enterprise development, including efficiency, engineering standards, and risk control.
The purpose of this assessment was very clear: to identify professionals who can immediately take on high-standard development work and have a deep understanding of system robustness.
High-Performance Data Structures & Algorithmic Skills
Ability to translate complex business requirements (such as real-time rate limiting and dynamic pattern matching) into efficient algorithmic solutions.
Practical skill in combining and optimizing collection framework components (Map, Queue/Deque) to achieve optimal time complexity in specific scenarios.
Software Engineering Standards & Project Configuration Management
Precise understanding of the structure, tag hierarchy, and parameter scope within mainstream build tools (e.g., Maven) configuration files.
Mastery of dependency management and compiler version settings to ensure portability and consistency across environments.
Foundational Awareness of Concurrency & Thread Safety
Clear understanding of how core Java collection classes behave differently under multithreaded conditions.
Awareness of selecting and applying thread-safe mechanisms proactively to avoid data races when designing systems.
Professional Use of Unit Testing Frameworks
Deep understanding of testing frameworks (such as Mockito), extending well beyond basic syntax.
Ability to identify and apply the appropriate testing strategies to verify complex logic and state changes, ensuring high code quality and coverage.
Adoption of Modern Java Language Features
Proficiency with key features introduced in Java 8 and beyond (such as lambda expressions and functional interfaces).
Ability to write expressive, concise, and maintainable code using modern language capabilities.
Efficiency First: I aimed for O(N) or better algorithms, avoiding O(N²) brute-force solutions to ensure I passed the performance test cases.
Precise Data Structure Matching: I translated business logic, such as rate limiting and lookups, into the most suitable underlying data structures to maximize code efficiency.
Comprehensive Boundary Coverage: I systematically tested and handled all edge cases, including empty inputs, maximum values, zero-length cases, and critical points in time windows.
Strict Code Standards: I followed function signatures and input/output types precisely, ensuring my implementation matched the problem requirements exactly.
Accurate Configuration Recall: For questions involving build tools or language specifications, I relied on precise memory of configuration structures and API details to aim for full marks.
Rigorous String Handling: When dealing with IP addresses, wildcards, and other string operations, I applied careful logic to avoid subtle errors that could cause incorrect behavior.
Framework Mechanism Priority: For questions involving testing frameworks, I relied on my understanding of the core mechanics of the framework, such as object state changes, to determine correct outcomes.
Modular Logic: Even under time pressure, I tried to break the solution into clear modules to improve debugging efficiency and code readability.
Performance Analysis in Advance: Before coding, I mentally analyzed the time complexity of my approach to ensure it met the performance requirements of the assessment.
Avoiding Unverified Library Functions: When unsure about the performance or side effects of certain library functions, I preferred basic, controllable low-level implementations.
The real value of this UBS online assessment is that it evaluated whether I could translate business requirements into stable and efficient technical solutions. This was not just a test of skills. It was a reflection of my ability to make sound technical decisions.
A core theme of the assessment was its strong emphasis on time complexity. When handling high frequency requests and sliding time windows, every choice had to prioritize efficiency.
Real time performance and amortized cost
I was expected to avoid quadratic or naive linear solutions and instead use structures such as hash maps and double ended queues. These data structures allowed historical lookups to be reduced to amortized constant or logarithmic time. This directly reflected the performance expectations of financial systems, where low latency and high throughput are essential.
Careful resource usage
The combination of IP rate limiting and wildcard matching required me to design solutions that maintained correctness while minimizing unnecessary computation and memory usage.
In financial services, system stability is a fundamental requirement. The assessment examined my risk awareness through details that may seem small but are extremely important.
Thread safety as a default mindset
I had to treat concurrency risks as a primary design concern. Choosing classes with built in synchronization showed an awareness of defensive programming in multithreaded environments.
Quality assurance through testing
The questions evaluated my understanding of the effects and behaviors of testing frameworks. The goal was to test whether I could use advanced testing techniques to simulate and verify code behavior under various edge cases and realistic scenarios.
This part focused on my ability to write code that could be integrated smoothly into large enterprise systems involving multiple teams.
Precision in configuration files
The detailed questions about build tool configuration highlighted the importance of accuracy in metadata. Even small mistakes could cause portability issues or build failures across environments, which is a serious problem in enterprise development.
Modern code style and readability
The assessment reviewed my use of modern Java features such as lambda expressions. These features encouraged me to write clean, expressive, and maintainable code that aligned with contemporary engineering practices.
Summary
Overall, the intention of this assessment was to evaluate whether I possess both efficiency driven thinking and a strong understanding of system stability. It tested whether I could make high quality engineering decisions even under pressure.
Mockito & Concurrency MCQs, and Safe SetupWhen my UBS HackerRank invitation arrived in 2026 for a Technology Software Engineering role (spanning UBS's Zurich global headquarters, London, New York / Weehawken, Raleigh, Pune, Hyderabad, Kraków/Wrocław, and Singapore hubs—now overseeing USD 5.7 trillion in invested assets following the Credit Suisse integration), the stakes felt unusually unforgiving before I even opened the editor. UBS caps early-career candidates at 3 applications per academic year across all divisions (and at most 5 professional applications per month), enforces a strict 168-hour (7-day) deadline where an expired link withdraws your candidacy automatically, and applies automatic rejection if you fail an online assessment—while a passing result carries forward for 6 months!
During my sitting, two traps stood out immediately. First, UBS's signature Validate IP Requests firewall task combines '*' wildcard IP matching with a 5-second rolling rate-limit window where counting blocked requests toward the 2-request cap silently breaks every repeating-IP hidden test case—right alongside 15 to 25 multiple-choice items probing Mockito @Spy vs. @Mock state behavior, ConcurrentHashMap internals, OS paging, and DBMS isolation! Second, UBS's official Career FAQ explicitly forbids AI or outside assistance across every assessment and interview—and in a documented early-April 2026 UBS sitting, running an on-screen desktop overlay ended the candidate's assessment prematurely with zero disclosed appeal path.
To verify wildcard dot-matching and Mockito verification edge cases without placing any software overlay on my monitored laptop display, I paired Linkjob AI in Dual-Device Mode—scanning the desktop QR code to open Linkjob AI on my phone's mobile webpage, turning off the desktop answer-display toggle so zero UI ever appeared on my computer monitor, and tapping capture from my phone's mobile webpage (zero laptop shortcut keys and zero window.onblur focus drops) to read verified Python and Java 17 solutions 1 inch below my webcam lens (alongside testing Desktop Floating Window Mode on unproctored practice links). Below is every 2026 UBS HackerRank variant, three complete coding solutions, the highest-frequency Java/CS MCQs, and what follows in Making a Match.
Before starting my 168-hour countdown, I compared UBS's Technology funnel against peer European and Wall Street investment-bank loops—including my Barclays HackerRank test guide, how I handled the Barclays Codility test, my 2026 Goldman Sachs HackerRank breakdown, how I solved Goldman Sachs coding interview questions, my Morgan Stanley HackerRank test notes, how I passed the JP Morgan HackerRank test, my JP Morgan Superday walkthrough, my Wells Fargo SWE interview experience, my RBC CodeSignal DevOps and API notes, and my IBM HackerRank assessment guide. Know where HackerRank sits inside UBS's broader filter before opening your link:
Aon + Culture Match + HackerRank)Stage 1A — Aon Cognitive & UBS Culture Match (Within 168 Hours): Graduate Talent Program (GTP, 18–24 month rotational) and 10-week Summer Internship applicants automatically receive up to four non-gamified tests—Verbal Reasoning, Numerical Reasoning, Inductive-Logical Reasoning, and the UBS Culture Match situational-judgment assessment.
Stage 1B — The 60-to-90-Minute UBS HackerRank Technical Assessment: Technology candidates receive a dedicated HackerRank invite whose question mix follows one of three active 2025–2026 shapes: (Shape A — Core Java / Backend SWE Build) 1 medium firewall/rate-limiter coding problem + 15 to 25 engineering MCQs (including 1 multiple-select + 14 single-select on Java 8+, Mockito, Maven, and concurrency); (Shape B — GTP & Campus SDE Build) 90 minutes pairing 2 DSA coding tasks (Max Binary XOR, DP, or Binary Search) with 15 to 40 CS/aptitude MCQs (OS, DBMS, TCP/UDP, OOP, pseudo-code output prediction, and CPU performance scenarios); or (Shape C — QA - Advanced & Data/Quant Build) combining automated test verification, SQL, and Python!
Zero Disclosed Score or Failure Reason: UBS publishes no cutoff score, and rejected HackerRank candidates receive no score breakdown, failure reason, or retake link—whether the miss came from hidden edge cases, MCQ accuracy, or an integrity flag.
Below are UBS's #1 signature firewall rate-limiter task, the October 2026 Greedy Binary Max-XOR problem, and the Java 17 Binary-Search-on-Answer batch scheduler from recent tougher campus sittings (matching core themes in HackerRank coding test archives).
UBS's #1 Signature Task): Validate IP Requests (* Wildcard Blacklist + 5-Second Sliding Window)The Exact Problem: You are building a firewall validator given blacklisted_ips: list[str] (1 <= len <= 10, where each string is an IPv4 pattern possibly containing '*' wildcards matching zero or more characters—such as "45.*", "*.100", "123.*.1", or "192.168.0.5") and requests: list[str], where requests[i] arrives at integer timestamp t = i seconds. Return list[int] of 0 (allowed) or 1 (blocked) for every request. A request at second i is blocked (1) if (a) requests[i] matches any pattern in blacklisted_ips, OR (b) that exact IP has already made at least 2 unblocked (0) requests within the previous 5 seconds ([i - 5, i - 1]—check your sample trace carefully whether the 5-second lookback is t >= i - 5 or t > i - 5!).
Two Classic Traps That Ruin Hidden Cases:
First, never convert "*.100" into regex carelessly—an unescaped dot . in regex matches any character ("99X100"), and forgetting full-string anchoring falsely matches "145.0.0.1" against "45.*"! A clean two-pointer glob matcher (match_wildcard) handles leading, middle, trailing, and consecutive '*' wildcards in O(|ip| * |pat|) with zero regex pitfalls.
Second, blocked requests do NOT enter the sliding window! If an IP is allowed at t = 0 (0) and t = 1 (0), its 3rd request at t = 2 is blocked (1) and discarded—so its window still holds only [0, 1], meaning once t = 0 expires at t = 6 (6 - 5 = 1, leaving only [1]), t = 6 is allowed (0) again!
from collections import defaultdict, deque
def match_wildcard(ip: str, pattern: str) -> bool:
"""
Exact full-string glob matcher where '*' matches 0 or more characters
and '.' matches only a literal dot character.
"""
i = 0
j = 0
star_idx = -1
match_after_star = 0
ip_len = len(ip)
pat_len = len(pattern)
while i < ip_len:
if j < pat_len and pattern[j] == ip[i]:
i += 1
j += 1
elif j < pat_len and pattern[j] == "*":
star_idx = j
match_after_star = i
j += 1
elif star_idx != -1:
j = star_idx + 1
match_after_star += 1
i = match_after_star
else:
return False
while j < pat_len and pattern[j] == "*":
j += 1
return j == pat_len
def validate_ip_requests(
blacklisted_ips: list[str],
requests: list[str],
window_seconds: int = 5,
max_unblocked_in_window: int = 2,
) -> list[int]:
"""
Time Complexity: O(R * B * L) where B <= 10 and L <= 15 (effectively O(R)).
Space Complexity: O(unique IPs) storing at most 2 recent timestamps per IP.
"""
blacklist_cache: dict[str, bool] = {}
allowed_history: dict[str, deque[int]] = defaultdict(deque)
verdicts: list[int] = []
for curr_sec, ip in enumerate(requests):
is_banned = blacklist_cache.get(ip)
if is_banned is None:
is_banned = any(match_wildcard(ip, pat) for pat in blacklisted_ips)
blacklist_cache[ip] = is_banned
if is_banned:
verdicts.append(1)
continue
q = allowed_history[ip]
# Evict timestamps strictly older than the 5-second lookback [curr_sec - 5, curr_sec]
while q and q[0] < curr_sec - window_seconds:
q.popleft()
if len(q) >= max_unblocked_in_window:
# Blocked due to rate limit -> DO NOT append curr_sec to q!
verdicts.append(1)
else:
q.append(curr_sec)
verdicts.append(0)
return verdicts
2026 GTP & SDE Greedy Bitwise Task): Maximize Binary XOR by Rearranging Bits (O(n))The Exact Reported Problem: Given two binary strings fixed_bits and movable_bits of equal length n (1 <= n <= 100,000), fixed_bits stays in place while you may rearrange the '0' and '1' characters of movable_bits in any order. Return the maximum possible binary XOR string (fixed_bits XOR rearranged_movable).
Most-Significant-Bit Greedy Proof: Because bit position i outweighs all positions i + 1 .. n - 1 combined, greedily pairing each '0' in fixed_bits with an available '1' from movable_bits (and each '1' in fixed_bits with an available '0') from left to right produces the provably maximum XOR string in one O(n) pass:
def maximize_rearranged_xor(fixed_bits: str, movable_bits: str) -> str:
"""Time Complexity: O(n) | Space Complexity: O(n)"""
ones_left = movable_bits.count("1")
zeros_left = len(movable_bits) - ones_left
xor_chars: list[str] = []
for bit in fixed_bits:
if bit == "0":
if ones_left > 0:
xor_chars.append("1")
ones_left -= 1
else:
xor_chars.append("0")
zeros_left -= 1
else:
if zeros_left > 0:
xor_chars.append("1")
zeros_left -= 1
else:
xor_chars.append("0")
ones_left -= 1
return "".join(xor_chars)
Java 17 — Campus SDE Binary Search on Answer): Minimize Peak Settlement-Worker LoadWhy Java 17 Fluency Helps at UBS: Recent campus SDE sittings stepped up DSA depth toward Binary Search on Answer and Dynamic Programming, and UBS's backend teams heavily favor modern Java (Java 17/21). Given batches of trade-settlement workloads that must be assigned contiguously across at most k worker nodes, minimize the maximum total load assigned to any single worker (O(n log(sum)), guarding long sums against 32-bit overflow!):
public final class SettlementBatchBalancer {
private SettlementBatchBalancer() {}
public static long minimizePeakWorkerLoad(int[] batches, int maxWorkers) {
if (batches == null || batches.length == 0 || maxWorkers <= 0) {
throw new IllegalArgumentException("Invalid batches or worker count");
}
long low = 0L;
long high = 0L;
for (int load : batches) {
if (load > low) {
low = load;
}
high += load;
}
while (low < high) {
long mid = low + (high - low) / 2L;
if (canPartitionWithinCap(batches, maxWorkers, mid)) {
high = mid;
} else {
low = mid + 1L;
}
}
return low;
}
private static boolean canPartitionWithinCap(int[] batches, int maxWorkers, long cap) {
int workersUsed = 1;
long currentSum = 0L;
for (int load : batches) {
if (currentSum + load > cap) {
workersUsed++;
currentSum = load;
if (workersUsed > maxWorkers) {
return false;
}
} else {
currentSum += load;
}
}
return true;
}
}
Mockito, & Systems TrapsWhether your UBS paper serves 15 Java-heavy MCQs or 25–40 CS fundamentals items, master these four recurring topics before clicking Start:
Mockito @Mock vs. @Spy & verify() Semantics: Calling an unstubbed method on a @Mock does not run real business code (it returns null, 0, or empty collections), whereas a @Spy wraps a real object and executes real state-mutating methods unless stubbed safely via doReturn(val).when(spyObj).compute()! Also know verify(mock, times(2)).send(any()) vs. verifyNoMoreInteractions(mock).
Java Thread Safety (ConcurrentHashMap, volatile, & Immutability): Know why ConcurrentHashMap rejects null keys/values (unlike HashMap), why volatile guarantees visibility and ordering across CPU caches without making count++ atomic (AtomicInteger is required!), and how Java 8+ Stream operations stay lazy until a terminal operation (collect, count, reduce) executes.
Maven / Build Lifecycles & Spring / OOP Contracts: Revise equals() + hashCode() contract invariants (equal objects must return identical hash codes or HashMap lookups break!), Maven's default lifecycle order (validate -> compile -> test -> package -> verify -> install -> deploy), and dependency-scope differences (compile, provided, test).
DBMS ACID, OS Deadlocks/Paging, & August 2026 CPU Scenarios: Brush up on SQL normalization (1NF -> 3NF -> BCNF), transaction isolation anomalies (dirty/non-repeatable/phantom reads), TCP 3-way handshake vs. stateless UDP, and diagnosing high kernel-mode CPU % caused by context-switch thrashing or page-fault storms.
168-Hour WindowDays 1–2 — Clear Aon Reasoning + UBS Culture Match Early: Finish the non-coding Aon verbal/numerical/inductive batteries and situational Culture Match first (aligning decisions with UBS's three keys to success: Core Pillars — Capital Strength, Simplification & Efficiency, Risk Management and client-centric integrity) so you still have 4+ calm days for HackerRank!
Days 3–4 — Code Wildcard + deque Rate Limiters, Bitwise Greedy, & Binary Search: Write validate_ip_requests (testing "*.100", "45.*", and blocked-request non-counting!) plus maximize_rearranged_xor and minimizePeakWorkerLoad from a blank file.
Days 5–6 — Java 17, Mockito, Concurrency, & OS/DBMS MCQ Drills: Run 30-question timed quizzes at 60 seconds per MCQ—paying special attention to multi-select items where missing one checkbox forfeits the question!
Day 7 — Single-Monitor Full-Screen Rehearsal & Video Interview Prep: Sit one 75-to-90-minute timed simulation, and draft crisp 90-second camera answers for "Why UBS post-Credit Suisse integration?", "Who are UBS's main wealth/IB competitors (Morgan Stanley, JPMorgan, Julius Baer, Goldman Sachs)?", and "How would you scale a service to 1M users?".
UBS's Career FAQ explicitly mandates completing every online test and interview without AI or external help, backed by HackerRank's integrity suite. Across how HackerRank detects integrity violations, whether HackerRank uses your camera, whether HackerRank detects screen mirroring, whether HackerRank can detect a virtual machine, and HackerRank test retake policies, six risks stand between you and Making a Match:
On-Screen Overlay Terminations (The April 2026 UBS Case): Placing an AI overlay window directly on your monitored computer screen ended a documented April 2026 UBS sitting early—and because UBS never discloses rejection causes, an integrity flag looks identical to an unappealable rejection email!
Tab-Switch & window.onblur Focus Tracking: Switching tabs to check Mockito syntax or regex flags logs exact departure counts and durations on your recruiter scorecard.
Clipboard insertFromPaste & Code Playback: Marks external pastes in red along your keystroke replay scrubber.
Employer-Configurable Secure Mode & Proctor Mode: Enables full-screen lock, single-monitor checks, desktop snapshots, and webcam verification per cohort.
Screen Mirroring & Virtual Machine Fingerprinting: Detects window.screen.isExtended === true, AirPlay/Sidecar mirroring, and virtualized WebGL GPUs.
1-Year / Cohort Automatic Rejection Gate: Failing an assessment triggers automatic rejection on that requisition—burning one of your 3 annual student slots!
Separate Wildcard Matching From Sliding-Window State: Keep match_wildcard(ip, pattern) as a pure helper function and test "45.*" vs. "145.0.0.1", "*.*.*.*", and exact t = i - 5 window boundaries in Custom Input before submitting!
Timebox MCQs Strictly (<= 25 Minutes): Never let a tricky Mockito or DBMS normal-form MCQ starve your coding problem!
Run Bare-Metal Single Display With Zero On-Screen Overlays: Unplug extra monitors (isExtended === false), close background chat/capture utilities, and skip VMs or LockDown Browser workarounds.
Confirming Mockito @Spy stubbing behavior and verifying that blocked requests stay out of the 5-second deque—without risking an April-2026-style desktop overlay termination on one of only 3 annual UBS slots—is why I kept every hint off my laptop using an undetectable AI coding interview assistant (see how an invisible AI interview assistant works):
QR Code Pairing & Turning Off Desktop Answer Display (Zero On-Screen UI): Before opening my UBS HackerRank link, I launched the Linkjob AI desktop client on my bare-metal single-monitor laptop, granted accessibility permissions, scanned the dashboard QR code with my phone to open Linkjob AI on my phone's mobile webpage, and turned off the desktop answer-display toggle. Zero overlays or answer panels ever rendered on my computer screen!
Silent Remote Capture From My Phone's Mobile Webpage (0 Laptop Hotkeys): Pressing zero shortcut keys on my computer, I tapped capture silently on my phone's mobile webpage—producing 0 full-screen exits, 0 window.onblur drops, and 0 clipboard writes.
Reading Firewall & Mockito Checks 1 Inch Below the Webcam Lens: Verified match_wildcard two-pointer logic and Java MCQ breakdowns rendered exclusively on my phone's mobile webpage, propped 1 inch below my webcam lens so my eye contact stayed naturally centered on the screen (and equally natural during UBS's follow-up pre-recorded Modern Hire video interview!).
When rehearsing on unproctored HackerRank Prep Kits or standard web links where Secure/Proctor Mode and screen capture are inactive, use Linkjob AI's desktop floating window workflow under two strict rules:
Finish All Settings Before Opening the Link (Never Click Settings Mid-Test): Select Java 17 or Python 3, upload your resume, and position the floating window before opening HackerRank—never click the Settings button mid-test so browser focus never drops.
Never Press Cmd + \ or Ctrl + \ During an Active Test: Never press Cmd + \ or Ctrl + \ to toggle the floating window once the timer starts; leave it stationary until after submission.
Step 1 — Guard Your 3-App Annual Cap & 168-Hour Deadline: Apply early (rolling US/UK/Swiss seats fill while listings still look open!) and finish Aon + Culture Match + HackerRank with 24+ hours to spare.
Step 2 — Unplug External Monitors & Pair Dual-Device Mode First: Confirm isExtended === false, open Linkjob AI on your phone's mobile webpage via QR code, confirm the desktop answer-display toggle is OFF, and place your phone 1 inch below the webcam lens.
Step 3 — Test All 6 Firewall Edge Cases in Custom Input: Verify blacklisted first hit (1), 3rd hit inside 5s (1, not recorded!), expiry at curr_sec - 5, interleaved IPs, "*.100", and substring non-matches ("145.1.1.1" vs. "45.*").
Step 4 — Prep for Pre-Recorded Video, Group Case, & Making a Match Final Rounds: Clearing HackerRank unlocks a smartly dressed recorded video interview, an optional 60-minute group case + slide presentation (on select campus intakes), and final Making a Match technical/HR interviews covering "How would you scale X to 1M users?" (caching, DB sharding, load balancers, Kafka async queues), resume bug stories, and responsible AI engineering experimentation (followed at offer stage by standard banking reference and credit checks!).
Most candidates receive 60 to 90 minutes in one of two primary builds: either 1 medium coding problem (like Validate IP Requests) plus 15 to 25 Java/CS multiple-choice questions, or 2 DSA coding problems plus 15 to 40 CS fundamentals and aptitude MCQs on campus/GTP cohorts.
No universal Java-only lock exists across all 2026 UBS links—many SDE/GTP coding editors allow Python 3, Java 8/17, and C++—but Java backend invitations frequently include Java-specific MCQs (Mockito, collections, concurrency, Maven), so always check your invitation's allowed language rules upfront.
UBS gives 7 days (168 hours) from invitation; missing the window automatically withdraws your application. Failed assessments trigger automatic rejection with zero retakes on that posting (and count toward UBS's 3 applications per academic year student cap), while passing scores remain valid for 6 months.
No—UBS's official Career FAQ states that all online assessments and interviews must be completed without AI or outside support (even though Zurich GTP interviews welcome discussing how you used AI responsibly on past engineering projects).
Passing leads to a pre-recorded video interview (dress smartly and keep camera eye contact), an optional group case presentation on select campus drives, and UBS's final Making a Match technical + behavioral rounds covering system scaling (1M users), Java/OS/DBMS fundamentals, and project tradeoffs.
The combined time for the MCQs and the coding question was 70 minutes. The timing was quite tight, so if you get stuck on a question, I recommend moving on and coming back to it only if you have time left at the end.
In the OA, my strategy was to prioritize the coding questions while still ensuring accuracy on the multiple-choice questions. The coding question sets the upper limit because performance test cases are the main factor for eliminating submissions.
I would first quickly skim through the multiple-choice questions and answer those that relied on memory or standard knowledge, then devote most of my time to the coding question, making sure the logic was correct and the time complexity was optimal.
The knowledge tested in multiple-choice questions was fixed, whereas the coding question required time for design and debugging, so time allocation needed to be weighted accordingly.
2026 Nvidia HackerRank Test: Questions I Got and How I Passed
How I Cracked 2026 Citadel HackerRank Assesment Questions
My IBM 2026 HackerRank Assessment: Real Questions & Insights
My 2026 MathWorks HackerRank Assessment Questions & Solutions
Questions I Encountered in 2026 Goldman Sachs HackerRank Test
Why People Choose Linkjob AI
Smoother interviews, coding challenges cleared, and job offers landed. See how users describe their experience with Linkjob AI—in their own words.
