Wabtec Interview Question

logic for accessign function pointer