Capital One interview question

Debug nested if else statements and reduce it to an easy solution

Interview Answer

Anonymous

1 Apr 2021

Truth table but it’s been so long since school I just eyeballed it Best choice is also to make a new method to keep legacy code intact