Forward Interview Question

1 Leet Code Hard Question