Diebold Nixdorf Interview Question

More logical question rather then programming language specific