Deutsche Bank Interview Question

1> Java coding problem : If three consecutive characters are the same ("aaa" or "bbb"), you must replace characters so that no 3 consecutive characters are identical. 2> Spring security in microservice , how to handle the slow DB queries