Write a function foo(int fd, char* buf, int b_size, int n, int skip) that reads to buf from file with file descriptor fd, n blocks of size b_size each.
The last argument specifies how many bytes to skip after reading each block.
Return -1 if the operation is unsuccessful. Else return total number of bytes read.