Triquesta Interview Question

some algorithm question, some question about struts/spring/hibernate