PTC interview question

Questions about your experienced projects. Node.js and JavasScript related. Explain and Write pseudo code to read a file, save content into database and write the same content from the database to a file. longest common substring, two sum, Redux-Reducer, optimize Java code which needs to merge two tables ( which can use SQL replace)