function twiceAsOld(dadYearsOld, sonYearsOld) {
let i = 0
do{
dadYearsOld++
sonYearsOld++
i++
}while(dadYearsOld / sonYearsOld !== 2);
return i
}
console.log(twiceAsOld(36, 7));
let menu = {}
function getMenu(obj){
if(obj.children.length > 0){
menu[obj.url] = obj.children
}
obj.children.map(i => getMenu(i))
return menu;
}