Agilent Technologies Interview Question

Basic questions on coding and bioinformatics, How are 3 ways you would write a program or a script to do X analysis? What are the steps involved in sequencing from sample prep to final analysis (explain why each step is important and potential pitfalls)?