Triquesta interview question

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