I applied online. The process took 2 weeks. I interviewed at UBS (London, England) in Oct 2023
Interview
I applied on LinkedIn for the role of Backend Java Expert in mid-October 2023 and got an online link after one week with a 10-day expiry date. The Online Assessment was in HackerRank. The questions were 15 MCQ(Java Streams, Lambda, Spring, Sql and General Java) and 1 Hard coding. I couldn't solve the coding.
Interview questions [1]
Question 1
there are n blacklisted ip regexes given as an array of strings, it consists of * or '.' eg: *.123.* mathces with "12.1.123.45" , "1.123.435.12", but not with "1.2.3.4". There are 'q' IP requests to be processed given as an array of IP address A request is blocked if it matches with any blacklisted regex ip or IP address that has sent at least 2 requests in the last 5 seconds which is not blocked return 1 if it will be blocked else 0 eg: blacklist =["*111.*" , "123.*" , "34.*"] q = 7 requests = ["123.1.23.34", "121.1.23.34", "121.1.23.34", "34.1.23.34","121.1.23.34", "12.1.23.34", "121.1.23.34"] output: [1,0,0,1,1,0,0]