IBM Interview Question

1.Two easy to Medium level DSA questions