Subway interview question

how to develop a pip2 protocol?