BNSF Railway Interview Question

I remember three easy programming questions (similar to leetcode)